package com.bbva.kyfb.kyfbdto.firmas.fachada.v01;

import java.io.Serializable;
import java.util.ArrayList;

import javax.xml.bind.annotation.XmlRootElement;

/**
 * Tipo de dato de salida de una firma.
 *
 * @author xe35008
 * version 1.0
 */
@XmlRootElement
public class SignedComponentsResponse implements Serializable{
	
	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 1L;

	/** Codigo de error generico. */
	private String codError;
	
	/** Lista de ficheros u ordenes firmados. */
	private ArrayList<SignedComponent> signedComponents;
	
	/**
	 * Instantiates a new signed components response.
	 */
	public SignedComponentsResponse() {}

	/**
	 * Gets the cod error.
	 *
	 * @return the codError
	 */
	public String getCodError() {
		return codError;
	}

	/**
	 * Sets the cod error.
	 *
	 * @param codError the codError to set
	 */
	public void setCodError(String codError) {
		this.codError = codError;
	}

	/**
	 * Gets the signed components.
	 *
	 * @return the signedComponents
	 */
	public ArrayList<SignedComponent> getSignedComponents() {
		return signedComponents;
	}

	/**
	 * Sets the signed components.
	 *
	 * @param signedComponents the signedComponents to set
	 */
	public void setSignedComponents(ArrayList<SignedComponent> signedComponents) {
		this.signedComponents = signedComponents;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "SignedComponentsResponse [codError=" + codError
				+ ", signedComponents=" + signedComponents + "]";
	}

}
